/*
 * Copyright (C) 2012-2013  Romain DUBOIS
 * 
 * This file is part of NeMoS - Network and Modular Software
 * 
 * NeMoS is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * NeMoS is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with NeMoS.  If not, see <http://www.gnu.org/licenses/>.
 */
package nemos.remote.socket.internal;

/**
 * SocketMessage : The socket RSA bundle messages class.
 * 
 * @author Romain DUBOIS
 */
public final class SocketMessage {

    /** An error occurred while listening to incoming messages */
    public static final String LISTENING_ERROR = "listen.error"; //$NON-NLS-1$

    /** A null message was received */
    public static final String NULL_OBJECT = "msg.null"; //$NON-NLS-1$
    /** A message had an invalid type */
    public static final String INVALID_TYPE = "msg.type.invalid"; //$NON-NLS-1$

    /** An error occurred while sending a message */
    public static final String SENDING_ERROR = "send.error"; //$NON-NLS-1$

    /** The socket server has been closed */
    public static final String SOCKET_SERVER_CLOSED = "server.closed"; //$NON-NLS-1$
    /** Server has been interrupted */
    public static final String INTERRUPTED = "server.interrupted"; //$NON-NLS-1$
    /** Server is starting */
    public static final String SOCKET_SERVER_START = "server.start"; //$NON-NLS-1$
    /** Server is started */
    public static final String SOCKET_SERVER_STARTED = "server.start.done"; //$NON-NLS-1$
    /** Server is stopping */
    public static final String SOCKET_SERVER_STOP = "server.stop"; //$NON-NLS-1$

    /** An error occurred while using socket */
    public static final String SOCKET_ERROR = "socket.error"; //$NON-NLS-1$

    /**
     * Constructor (private for constants class).
     */
    private SocketMessage() {
        super();
    }
}
